# -*- mode: snippet -*-
# name: [var |this.|$scope.|vm.]name = function() {..}
# key: fn
# contributor: Chen Bin <chenbin DOT sh AT gmail>
# --
${1:var }${2:name} = function($0) {
  console.log('${2:$(yas/substr yas-text "[^:=, ]*")} called');
};